<?php
class Db {
    public static function table($table){
        $model = Yaf_Registry::get($table);
        if( $model == null){
            $model = new Model($table);
            Yaf_Registry::set($table,$model);
        }
        return($model);
    }
}